 <html>
<body>
    <script src="http://www.google.com/jsapi" type="text/javascript"></script>
    <script type="text/javascript">

    google.load("elements", "1", {packages: "keyboard"});
    
    function onLoad() {
      var kbd = new google.elements.keyboard.Keyboard(
          [google.elements.keyboard.LayoutCode.FRENCH],
          ['t1']);
    }
    
    google.setOnLoadCallback(onLoad);
    
    </script>
	
Привіт 
{% if user %}
	{{ user.nickname }}!
	[<a href="{{ logout }}"><b>sign out</b></a>]
{% else %}
	Гість!
	[<a href="{{ login }}"><b>sign in</b></a>]
{% endif %}

<h2>Останні 10 повідомлень</h2>

{% for greeting in greetings %}
	<br>
	<small>[<i>{{ greeting.date.ctime }}</i>]</small>
	<b>
	{% if greeting.author %}
		<code>{{ greeting.author.user_id }}</code>
	{% else %}
		<i>Гість</i>
	{% endif %}
	</b>
	пише:
	{{ greeting.content|escape }}
{% endfor %}

<hr>
<form action="/sign" method=post>
	<textarea id=t1 name=content rows=3 cols=60></textarea>
	<br><input type=submit value="Sign Guestbook">
</form>
</body>
</html>